{% extends 'layout/basic.html' %}

{% block title %}
订单
{% endblock %}

{% block css %}

{% endblock %}

{% block content %}
    <div class="container">
        <h2>订单信息</h2>
        <table class="table">
            <thead>
            <tr>
                <th>订单</th>
                <th>单价</th>
                <th>数量</th>
                <th>原价</th>
                <th>原订单抵扣</th>
                <th>实际支付</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>{{ policy_obj.title }}</td>
                <td>￥ {{ policy_obj.price }}</td>
                <td>{{ number }}</td>
                <td>￥ {{ origin_price }}</td>
                <td>￥ {{ balance }}</td>
                <td>￥ {{ total_price }}</td>
            </tr>
            </tbody>
        </table>
        {% if transaction %}
            <div class="alert alert-warning">
                <div>原订单抵扣：￥{{ balance }}</div>
                <div style="">
                    原订单的时间：{{ transaction.start_time }} ~ {{ transaction.end_time }}，且实际支付￥ {{ transaction.price }}
                </div>
            </div>
        {% endif %}
        <a href="{% url 'web:pay' %}" class="btn btn-primary">立即支付</a>
    </div>
{% endblock %}

{% block js %}

{% endblock %}



